package com.wd.impt;

import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.annotation.Rollback;
import org.springframework.test.context.junit4.SpringRunner;

import com.tkjt.pms.PmsApplication;
import com.tkjt.pms.calc.IndexCalcDependecyService;
import com.tkjt.pms.calc.KpiCalculator;
import com.tkjt.pms.calc.loader.FormulaRuleLoader;
import com.tkjt.pms.impt.IIndexTreeImporterService;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = PmsApplication.class, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
public class InfoTreeData {
    @Autowired
    FormulaRuleLoader formulaRuleLoader;
    @Autowired
    IIndexTreeImporterService indexTreeImporterService;
    @Autowired
    KpiCalculator kpiCalculator;
    @Autowired
    IndexCalcDependecyService indexCalcDependecyService;

    /**
     * 指标层及数据导入
     */
    @Rollback(false)
    @org.junit.Test
    public void initialTreeData(){
        indexTreeImporterService.doImporter(null);
    }
}
